//
//  DatePickerView.h
//  LearnTeacher
//
//  Created by zyl on 2024/4/19.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface DatePickerView : UIView
/**
 * @property maximumDate: 最大值
 */
@property (nonatomic, strong) NSDate *maximumDate;
/**
 * @property minimumDate: 最小值
 */
@property (nonatomic, strong) NSDate *minimumDate;
/**
 * @property date: 用于手动设置时间
 */
@property (nonatomic, strong) NSDate *date;

/**
 * @property canChoicePastTime: 是否不可选择过去的时间 默认是NO
 */
@property (nonatomic, assign) BOOL canChoicePastTime;
/**
 * @property backGroundColor: 选择器背景颜色
 */
@property (nonatomic, strong) UIColor *backGroundColor;


- (void)configPickView;

- (NSDate *)getDateByPickerview;
@end

@interface NSDate (PC)
+ (NSDateComponents *)dateComponentsFromDate:(NSDate *)date;
+ (NSUInteger)getNumberOfDaysInMonth:(NSInteger)month Year:(NSInteger)year;
@end

NS_ASSUME_NONNULL_END
